package com.zhouyu.service;

import com.spring.Autowired;
import com.spring.BeanNameAware;
import com.spring.Component;

@Component(value = "orderService")
public class OrderService implements OrderInterface, BeanNameAware {

    @Zhouyu(value = "测试beanPostProcesser自定义赋值")
    private String test;

    @Autowired
    private UserService userService;

    private String name;

    @Override
    public void test(){
        System.out.println(name);
    }



    @Override
    public void setBeanName(String name) {
        this.name = name;
    }
}
